 

package com.zdkj.subway.st.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zdkj.common.core.entity.BaseEntity;
import com.zdkj.subway.st.util.LocalDateTimeConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 公务票办理历史信息
 *
 * @author chenbo
 * @date 2020-06-10 10:21:03
 */
@Data
@TableName("sw_tk_official_ticket_history")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "公务票办理历史信息")
public class SwTkOfficialTicketHistory extends BaseEntity<SwTkOfficialTicketHistory> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @ExcelIgnore
    @TableId
    @ApiModelProperty(value="")
    private Integer id;
    /**
     * 主表关联ID
     */
    @ApiModelProperty(value="主表关联ID")
    private Integer relationId;
    /**
     * 公务票类型
     */
    @ExcelProperty(value = "公务票类型", index = 0)
    @ApiModelProperty(value="公务票类型")
    private String officialType;

    /**
     * 线路编号
     */
    @ExcelProperty(value = "线路编号")
    @ApiModelProperty(value="线路编号")
    private String lineCode;

    /**
     * 车站编号
     */
    @ExcelProperty(value = "车站编号")
    @ApiModelProperty(value="车站编号")
    private String stationCode;

    /**
     * 公务票类型名字
     */
    @ApiModelProperty(value="公务票类型名字")
    @TableField(exist = false)
    private String officialTypeName;
    /**
     * 卡号
     */
    @ExcelProperty(value = "卡号", index = 1)
    @ApiModelProperty(value="卡号")
    private String cardNum;
    /**
     * 旧卡号
     */
    @ExcelProperty(value = "旧卡号", index = 2)
    @ApiModelProperty(value="旧卡号")
    private String oldCardNum;
    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名", index = 3)
    @ApiModelProperty(value="姓名")
    private String name;
    /**
     * 身份证号
     */
    @ExcelProperty(value = "身份证号", index = 4)
    @ApiModelProperty(value="身份证号")
    private String idCard;
    /**
     * 所属单位
     */
    @ExcelProperty(value = "所属单位", index = 5)
    @ApiModelProperty(value="所属单位")
    private String belongUnit;
    /**
     * 归口中心
     */
    @ExcelProperty(value = "归口中心", index = 6)
    @ApiModelProperty(value="归口中心")
    private String underCenter;
    /**
     * 发卡时间
     */
    @ExcelProperty(value = "发卡时间", index = 7)
    @ApiModelProperty(value="发卡时间")
    private LocalDate sendCardTime;


    /**
     * 办卡类型
     */
    @ExcelProperty(value = "办卡类型", index = 8)
    @ApiModelProperty(value="办卡类型")
    private String handleType;
    /**
     * 办卡类型名字
     */
    @ApiModelProperty(value="办卡类型名字")
    @TableField(exist = false)
    private String handleTypeName;
    /**
     * 金额
     */
    @ExcelProperty(value = "金额", index = 9)
    @ApiModelProperty(value="金额")
    private BigDecimal money;
    /**
     * 车票有效期
     */
    @ExcelProperty(value = "车票有效期", index = 10)
    @ApiModelProperty(value="车票有效期")
    private String ticketValidityTime;
    /**
     * 开始日期
     */
    @ExcelProperty(value = "开始日期", index = 11, converter = LocalDateTimeConverter.class)
    @ApiModelProperty(value="开始日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    /**
     * 结束日期
     */
    @ExcelProperty(value = "结束日期", index = 12, converter = LocalDateTimeConverter.class)
    @ApiModelProperty(value="结束日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
    /**
     * 票卡状态
     */
    @ExcelProperty(value = "票卡状态", index = 13)
    @ApiModelProperty(value="票卡状态")
    private String ticketStatus;
    /**
     * 票卡状态显示
     */
    @ApiModelProperty(value="票卡状态显示")
    @TableField(exist = false)
    private String ticketStatusName;
    /**
     * 备注
     */
    @ExcelProperty(value = "备注", index = 14)
    @ApiModelProperty(value="备注")
    private String remark;

    /**
     * 退卡状态
     */
    @ExcelProperty(value = "退卡状态", index = 15)
    @ApiModelProperty(value="退卡状态")
    private String backStatus;
    /**
     * 退卡状态显示
     */
    @ApiModelProperty(value="退卡状态显示")
    @TableField(exist = false)
    private String backStatusName;
    /**
     * 办理编号
     */
    @ApiModelProperty(value="办理编号")
    private String applyNum;
    /**
     * 结束日期
     */
    @TableField(exist = false)
    @ExcelIgnore
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTimeDTO;
    }
